Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect lifetimes in impl Trait types in bindings are not currently supported error in latest nightly #69238

Closed
olegnn opened this issue Feb 17, 2020 · 2 comments
Labels
A-lifetimes Area: Lifetimes / regions C-bug Category: This is a bug. F-impl_trait_in_bindings `#![feature(impl_trait_in_bindings)]` requires-nightly This issue requires a nightly compiler in some way.

Comments

@olegnn
Copy link
Contributor

olegnn commented Feb 17, 2020

rustc 1.43.0-nightly (5e7af46 2020-02-16)

futures-rs tests (https://travis-ci.com/rust-lang/futures-rs/jobs/288109824#L1073) now fail on nightly with

error: lifetimes in impl Trait types in bindings are not currently supported
  --> src/compat/compat01as03.rs:390:13
   |
12 | let reader: impl tokio_io::AsyncRead = std::io::Cursor::new(input);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^

However it worked before and there's no lifetimes in binding.

@olegnn olegnn added the C-bug Category: This is a bug. label Feb 17, 2020
@olegnn olegnn changed the title lifetimes in impl Trait types in bindings are not currently supported in latest nightly Incorrect lifetimes in impl Trait types in bindings are not currently supported error in latest nightly Feb 17, 2020
@Centril Centril added F-impl_trait_in_bindings `#![feature(impl_trait_in_bindings)]` requires-nightly This issue requires a nightly compiler in some way. A-lifetimes Area: Lifetimes / regions labels Feb 17, 2020
@Centril
Copy link
Contributor

Centril commented Feb 17, 2020

cc @matthewjasper

@matthewjasper
Copy link
Contributor

The lifetime being referred to is in the concrete type. This is working as currently intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions C-bug Category: This is a bug. F-impl_trait_in_bindings `#![feature(impl_trait_in_bindings)]` requires-nightly This issue requires a nightly compiler in some way.
Projects
None yet
Development

No branches or pull requests

3 participants